package com.qijian.business.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class QualityInspectDto {
    /**
     * 唯一id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "唯一id")
    private Long id;
    /**
     * 质检类型
     */
    @ApiModelProperty(value = "质检类型")
    private Integer qualityType;

    /**
     * 质检数量
     */
    @ApiModelProperty(value = "质检数量")
    private Long qualityCount;

    /**
     * 合格数量
     */
    @ApiModelProperty(value = "合格数量")
    private Long qualifiedCount;

    /**
     * 不合格数量
     */
    @ApiModelProperty(value = "不合格数量")
    private String unqualifiedCount;

    /**
     * 合格率
     */
    @ApiModelProperty(value = "合格率")
    private BigDecimal qualifiedRate;

    /**
     * 质检结果
     */
    @ApiModelProperty(value = "质检结果")
    private Integer qualityResult;

    /**
     * 质检备注
     */
    @ApiModelProperty(value = "质检备注")
    private String qualityRemark;


    /**
     * 质检方案id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "质检方案id")
    private Long qualitySchemeId;

    /**
     * 质检方案名称
     */
    @ApiModelProperty(value = "质检方案名称")
    private String qualitySchemeName;

    /**
     * 质检时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "质检时间")
    private Date qualityTime;
}
